<!--{template control/admin/tpl/admin_header}-->
<div class="page_title">
    	<h1>{$model_info['model_name']}{$_lang['manage']}</h1>
        <div class="tool">
        	<a href="index.php?do=$do&model_id=$model_id&view=list">{$_lang['task_list']}</a>
			{loop $ops $v}
				<a href="index.php?do=$do&model_id={$model_id}&view=edit&task_id={$task_id}&op={$v}" class="{if $op==$v}here{/if}">{$_lang['b_task_'.$v]}</a>
       		{/loop}
	    </div>
    </div>
	 <div class="box post">
        <div class="tabcon">
        	<div class="title"><h2>{$_lang['edit_task']}</h2></div>
            <div class="detail">
                <form method="post" action="index.php?do=model&view=edit&model_id=$model_id&task_id=$task_id" enctype="multipart/form-data" id="frm1">
					<input type="hidden" name="pk[task_id]" value="{$task_id}">
						 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <th scope="row" width="130">{$_lang['task_name']}</th>
                        <td>
                        <input type="text" value="{$task_info['task_title']}" name="fds[task_title]" id="title" class="txt" style=" width:260px;"
						 limit='required:true;len:3-50' msg={$_lang['title_err']} msgarea='msg_title' tips={$_lang['username_3_12_characters']}>
						 <span id='msg_title'></span>
						 	&nbsp;&nbsp;&nbsp;<label for="is_top"><input type="checkbox" id="is_top" name="recommend" {if $task_info[is_top]}checked{/if}><font color="red">{$_lang['whether_this_task']}</font></label>
						 </td>
                      </tr>
					   <tr>
                        <th scope="row" width="130">{$_lang['task_type']}</th>
                        <td>
                       		 $model_list[$model_id][model_name]
                        </td>
                      </tr>
					     <tr>
                        <th scope="row" width="130">{$_lang['task_status']}</th>
                        <td>
                       		$task_status[$task_info['task_status']]
                        </td>
                      </tr>
					     <tr>
                        <th scope="row" width="130">{$_lang['industry']}</th>
                        <td>
                        	<select name="fds[indus_id]">
        						<option value="0">{$_lang['top']}</option>
									{loop $indus_option_arr $v}
										 {$v}
									{/loop}
							</select>　
                        </td>
                      </tr>
					   
					    <tr>
                        <th scope="row" width="130">{$_lang['attachment_task']}</th>
                        <td>
                         {if $file_list}
        					{loop $file_list $file}
    							<a target="_blank" href="../../{$file[save_name]}">{$file[file_name]}</a>&nbsp;&nbsp;&nbsp;
    						{/loop}
						{else}
							{$_lang['no_attachment']}
						{/if}
                        </td>
                      </tr>
                      <tr>
                        <th scope="row">{$_lang['description']}</th>
                        <td>
                        	<textarea id="system-create-location_1" class="xheditor {urlBase:'{$_K[site_url]}',tools:'mfull',admin:'../../',html5Upload:false,upImgUrl:'../../index.php?do=ajax_upload&file_type=att'}" rows="15" style="width:65%; display: none;" name="fds[task_desc]">{$task_info['task_desc']}</textarea>
						</td>
                      </tr>
					    <tr>
                        <th scope="row" width="130">{$_lang['pub_name']}</th>
                        <td>
                       		<b>{$task_info[username]}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<b>{$_lang['mobile']}：{$task_info['contact']}</b>
                        </td>
                      </tr>
					    <tr>
                        <th scope="row" width="130">{$_lang['pub_time']}</th>
                        <td>
                        	<!--{date('Y-m-d H:i',$task_info[start_time])}-->
                        </td>
                      </tr>
					    <tr>
                        <th scope="row" width="130">{$_lang['expiration_time']}</th>
                        <td>
                       	 <!--{date('Y-m-d H:i',$task_info[end_time])}-->
                        </td>
                      </tr>
                      <tr>
                        <th scope="row">{$_lang['task_cash']}</th>
                        <td>
                        	<select name='fds[task_cash_coverage]'>
        						{loop $cash_rule_arr $value}
									<option {if $task_info[task_cash_coverage]==$value['cash_rule_id']}selected="selected"{/if} value="$value['cash_rule_id']">{c:$value['start_cove']}-{c:$value['end_cove']}</option>
								{/loop}
							</select>
                        </td>
                      </tr>
                       
                      <tr>
                        <th scope="row">&nbsp;</th>
                        <td>
                            <div class="clearfix padt10">
                            	<button class="positive primary pill button" type="submit" name="sbt_edit" value={$_lang['submit']} onclick="return checkForm(document.getElementById('frm1'))"><span class="check icon"></span>{$_lang['submit']}</button>
								{loop $operate $k $v}
									<a class="positive primary pill button" href="index.php?do=model&model_id=$model_id&view=op&op={$k}&task_id=$task_id"><span class="lock icon"></span>{$v}</a>
								{/loop}
								<a class="positive primary pill button" onclick="history.go(-1)" value={$_lang['return']}><span class="uparrow icon"></span>{$_lang['return']}</a>
                            </div>
                        </td>
                      </tr>
                    </table>
                    
                </form>
            </div>
        </div>
        
    </div>
<!--{template control/admin/tpl/admin_footer}-->